package com.coderman.infosys.auth.api.facade.sdk;

import com.coderman.infosys.auth.api.dto.sdk.RoleAuthorityDTO;
import com.coderman.infosys.auth.api.dto.sdk.UserAuthorityDTO;
import com.coderman.infosys.plat.auth.common.dto.ResultDataDto;

/**
 * Description:
 * date: 2022/1/9
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
public interface AuthPlatQueryAPI {

    /**
     *
     * @Description 根据用户ID+系统维度查询用户有哪些权限资源和角色
     * @param userId
     * @param systemCode
     * @return AuthorityDTO
     */
    ResultDataDto<UserAuthorityDTO> queryAuthorityWithUser(Long userId, String systemCode);

    /**
     * 根据角色查询该角色有哪些权限内容
     * @param roleCode
     * @return
     */
    ResultDataDto<RoleAuthorityDTO> queryAuthorityWithRole(String roleCode);


}
